package com.zzxy.spring.controller;

import com.zzxy.spring.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

@Controller
public class StudentController {
    @Autowired
    private IStudentService studentService;

    /*public IStudentService getStudentService() {
        return studentService;
    }

    public void setStudentService(IStudentService studentService) {
        this.studentService = studentService;
    }*/
    public  void  save(){
        studentService.addStudent();
    }
}
